// @FileName  :test.c
// @Time      :2024/3/1 8:02
// @Author    :YKW
//# include <bits/stdc++.h>
//using namespace std;
#include<stdio.h>
#include<string.h>
void main()
{
    char a[]="acegikm";
    char b[]="bdfhjlnpq";
    char c[80],*p;
    int i=0,j=0,k=0;
    while(a[i]!='\0'&&b[j]!='\0')
    {
        if(a[i]<b[j]){c[k++]=a[i++];}
        else{c[k++]=b[j++];}
    }
    c[k]='\0';
    if(a[i]=='\0')p=b+j;
    else p=a+i;
    strcat(c,p);
    puts(c);

    return 0;
}